from django.contrib import admin
from yuriyshapovalov.projects.models import Project

class ProjectAdmin(admin.ModelAdmin):
    list_display = ('project_name', 'type', 'uploaded', 'link_to_project')
    search_fields = ('project_name',)
    list_filter = ('type', 'uploaded')
    #date_hierarchy = 'uploaded'
    ordering = ('uploaded',)
    fields = ('type', 'project_name', 'description', 'uploaded', 'link_to_project',)

admin.site.register(Project, ProjectAdmin)